The HttpRequest
PHP Manual

HttpRequest::setMethod

(PECL pecl_http >= 0.10.0)

HttpRequest::setMethodSet method

Descripción

public bool HttpRequest::setMethod ( int $request_method )

Set the request method.

Lista de parámetros

request_method

the request method to use

Valores retornados

Devuelve TRUE si todo se llevó a cabo correctamente, FALSE en caso de fallo.


The HttpRequest
PHP Manual